import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router'
import App from './App.vue'
import MyTable from 'common-list'
import 'common-list/dist/style.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { setupMock } from '../mock'; //mock
console.log(import.meta.env.MODE)
if(import.meta.env.MODE === 'development'){ //dev环境开启mock
 // debugger
  setupMock()
}
createApp(App).use(router).use(ElementPlus, {
    locale: zhCn,
  }).use(MyTable).mount('#test')
